home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4587 < prev    next >
Encoding:
Text File  |  1996-08-05  |  958 b   |  35 lines

  1. Path: news.microsoft.com!news
  2. From: a-cnadc@microsoft.com (Dann Corbit)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can main() function be called?
  5. Date: 5 Feb 1996 23:53:40 GMT
  6. Organization: Microsoft Corporation
  7. Message-ID: <4f65a4$b8k@news.microsoft.com>
  8. References: <823183263.118@fountain.demon.co.uk> <4f1mv0$2fd@cloner4.netcom.com>
  9. NNTP-Posting-Host: 157.57.171.202
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <4f1mv0$2fd@cloner4.netcom.com>, rozen@ix.netcom.com says...
  14. >
  15. >I think that it cannot be done, I see no reasonalbe way how main()
  16. >could be called more than once.
  17. >
  18. >
  19. >   What is your thoughts on this?
  20. >
  21. You would certainly have to be careful.  This is the source of a 
  22. famous recursion bug:
  23.  
  24. int main()
  25. {
  26.    main();
  27. }
  28.  
  29. This is sure to crash in a heinous way on any system where it can
  30. be compiled.
  31. -- 
  32. The opinions expressed in this message are my own personal views 
  33. and do not reflect the official views of Microsoft Corporation.
  34.  
  35.